define(['cordova_plugins'], function() {
	var Db = {
		get : function() {
			if (device.platform == 'Win32NT') {
				return window.sqlitePlugin.openDatabase({name: "my.db"});
			} else {
				return openDatabase("auto", "1.0", "Glowna baza danych", 2 * 1024 * 1024);
			}
		}
	}
	
	return Db;
});